home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 15 code / 3D Interface / Demo3D / UDemo3D.h < prev   
Encoding:
Text File  |  1994-10-21  |  2.2 KB  |  102 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. //    File:        Demo3D.h
  3. //
  4. //    Contains:    3D drawing demo program
  5. //
  6. //    Written by:    Jamie Osborne
  7. //                 Adapted for 3.1.1 by Jeroen Schalk
  8. //
  9. //    Copyright:    © 1992-1994 by Apple Computer, Inc.
  10. //----------------------------------------------------------------------------------------
  11.  
  12. #ifndef __UDEMO3D__
  13. #define __UDEMO3D__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. #endif
  18.  
  19. #ifndef __MACAPPTYPES__
  20. #include <MacAppTypes.h>
  21. #endif
  22.  
  23. #ifndef __UEVENTHANDLER__
  24. #include <UEventHandler.h>
  25. #endif
  26.  
  27. #ifndef __UCCOMMANDHANDLER__
  28. #include <UCommandHandler.h>
  29. #endif
  30.  
  31. #ifndef __UAPPLICATION__
  32. #include <UApplication.h>
  33. #endif
  34.  
  35. #ifndef __UADORNERS__
  36. #include <UAdorners.h>
  37. #endif
  38.  
  39. #ifndef __UVIEW__
  40. #include <UView.h>
  41. #endif
  42.  
  43. #ifndef __UBEHAVIOR__
  44. #include <UBehavior.h>
  45. #endif
  46.  
  47. #ifndef __UMACAPPGLOBALS__
  48. #include <UMacAppGlobals.h>
  49. #endif
  50.  
  51. // • Building Blocks
  52.  
  53. #ifndef __UDIALOG__
  54. #include <UDialog.h>
  55. #endif
  56.  
  57. #ifndef __UGRIDVIEW__
  58. #include <UGridView.h>
  59. #endif
  60.  
  61. const OSType kSignature = 'DE3D';            // Application signature
  62. const OSType kFileType = 'DE3D';            // File-type code used for document files
  63.  
  64. //----------------------------------------------------------------------------------------
  65. // TTestApplication
  66. //----------------------------------------------------------------------------------------
  67. class TTestApplication : public TApplication
  68. {
  69.     DeclareClass(TTestApplication);
  70.  
  71. public:
  72.     virtual void ITestApplication();
  73.         // Initializes the application and globals.
  74.  
  75.     virtual TDocument* DoMakeDocument(CommandNumber itsCommandNumber,
  76.                                       TFile* itsFile);// override
  77.  
  78.     virtual void DoMenuCommand(CommandNumber aCommandNumber);// override
  79.     virtual void DoSetupMenus();            // override
  80.  
  81. protected:                                    // the procedures to do the views by procedures!!
  82.     virtual void    MakeDrawingWind();
  83.     virtual void    MakeDrawingProcWind();
  84. };
  85.  
  86. //----------------------------------------------------------------------------------------
  87. // TDemoWindow
  88. //----------------------------------------------------------------------------------------
  89.  
  90. class TDemoWindow : public TWindow
  91. {
  92.     DeclareClass(TDemoWindow);
  93.  
  94. public:
  95.     virtual void DoEvent(EventNumber eventNumber,
  96.                                      TEventHandler* source,
  97.                                      TEvent* event);
  98. };
  99.  
  100. #endif
  101.  
  102.